package com.bestillet.kyllingogco;

import android.graphics.Bitmap;
import android.os.Parcel;
import android.os.Parcelable;

public class Menu implements Parcelable {
	private Bitmap image;
	private String name, picturenormal, description, obs, picturelarge;
	
	private int idx, categoryId, price, mixidx, mixgroup, mixheader;
	
	public Menu(String name, String picturenormal, String description, String obs, String picturelarge, int idx, int categoryId, int price, int mixidx, int mixgroup, int mixheader) {
		this.name = name;
		this.picturenormal = picturenormal;
		this.description = description;
		this.obs = obs;
		this.picturelarge = picturelarge;
		this.idx = idx;
		this.categoryId = categoryId;
		this.price = price;
		this.mixidx = mixidx;
		this.mixgroup = mixgroup;
		this.mixheader = mixheader;
	}
	
	public Menu() {
		
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPicturenormal() {
		return picturenormal;
	}

	public void setPicturenormal(String picturenormal) {
		this.picturenormal = picturenormal;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getObs() {
		return obs;
	}

	public void setObs(String obs) {
		this.obs = obs;
	}

	public String getPicturelarge() {
		return picturelarge;
	}

	public void setPicturelarge(String picturelarge) {
		this.picturelarge = picturelarge;
	}

	public int getIdx() {
		return idx;
	}

	public void setIdx(int idx) {
		this.idx = idx;
	}

	public int getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(int categoryId) {
		this.categoryId = categoryId;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}

	public int getMixidx() {
		return mixidx;
	}

	public void setMixidx(int mixidx) {
		this.mixidx = mixidx;
	}

	public int getMixgroup() {
		return mixgroup;
	}

	public void setMixgroup(int mixgroup) {
		this.mixgroup = mixgroup;
	}

	public int getMixheader() {
		return mixheader;
	}

	public void setMixheader(int mixheader) {
		this.mixheader = mixheader;
	}

	public Bitmap getImage() {
		return image;
	}

	public void setImage(Bitmap image) {
		this.image = image;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel out, int flags) {
		out.writeString(name);
		out.writeString(picturenormal);
		out.writeString(description);
		out.writeString(obs);
		out.writeString(picturelarge);
		out.writeInt(idx);
		out.writeInt(categoryId);
		out.writeInt(price);
		out.writeInt(mixidx);
		out.writeInt(mixgroup);
		out.writeInt(mixheader);
	}
	
	public static final Parcelable.Creator<Menu> CREATOR = new Parcelable.Creator<Menu>() {
		@Override
		public Menu createFromParcel(Parcel in) {
			return new Menu(in);
		}

		@Override
		public Menu[] newArray(int size) {
			return new Menu[size];
		}
	};
	
	private Menu(Parcel in) {
		name = in.readString();
		picturenormal = in.readString();
		description = in.readString();
		obs = in.readString();
		picturelarge = in.readString();
		idx = in.readInt();
		categoryId = in.readInt();
		price = in.readInt();
		mixidx = in.readInt();
		mixgroup = in.readInt();
		mixheader = in.readInt();
	}
}